/********************************************************************************
 * Project Name		[JavaSE_Fundamentals]
 * File Name     	[Warehouse.java]
 * Creation Date 	[2015-01-01]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ********************************************************************************/
package thread.producerConsumer;

/**
 * @author 不落的太阳(Sean Yang aka ShortPeace)
 * @version 1.0
 * @since jdk 1.8
 * 
 */
public interface Warehouse {

	/**
	 * 生产number个产品
	 * 
	 * @param number
	 * @throws InterruptedException
	 */
	void produce(int number) throws InterruptedException;

	/**
	 * 消费number个产品
	 * 
	 * @param number
	 * @throws InterruptedException
	 */
	void consume(int number) throws InterruptedException;
}
